home *** CD-ROM | disk | FTP | other *** search
/ L' Effet Pommier 3 / L'Effet Pommier - Volume 03.iso / Programmation / Gooey1.3.1 / Docs & Compile Hints / THINK C++ 8.0 Hints < prev   
Text File  |  1995-02-06  |  4KB  |  142 lines

  1. After generating code for the first time, for your new prototype, follow this  method to 
  2. get THINK C++ up and working for you:
  3.  
  4. CREATING A THINK PROJECT...
  5.  
  6. Ñ Double click on the Think 8.0 Project Manager.
  7. Ñ╩Select the "New Project" menu item in the "File" menu.
  8. Ñ Select the "C++ Mac application" type.
  9. Ñ Now enter your project name, using Option-P for the "╣" part of the name, e.g. MyProgram.╣
  10.  
  11.  
  12.  
  13. ADDING Gooey SPECIFIC FILES...
  14.  
  15. Ñ Select the "main.cp" file and then the "Remove 'main.cp'" menu item.
  16.  
  17. Ñ Select the "Add Group╔" item under the "Project" menu.
  18.  
  19. Ñ Give the group the name "Gooey"
  20.  
  21. Ñ Open the "Gooey" folder (making the arrow point down.
  22.  
  23. Ñ Select the "Gooey" folder, this will add files to it.
  24.  
  25. Ñ Under the "Source" menu, select the "Add Files..." menu item.
  26.  
  27. Ñ Open the "mm" folder, from the Add dialog.
  28.  
  29. Ñ Press the "Add All" button, this will select every file in this "mm" dialog.
  30.  
  31. Ñ Press the "Done" button, this will now add them all to your project.
  32.  
  33. Ñ╩Make the project window taller if necessary, for extra empty space at the bottom.
  34.  
  35.  
  36.  
  37.  
  38. ADDING user SPECIFIC FILES...
  39.  
  40. Ñ Click below the "Totals" line, this will make the next group at the top level.
  41.  
  42. Ñ Select the "Add Group╔" item under the "Project" menu.
  43.  
  44. Ñ Give the group the name "Unique"
  45.  
  46. Ñ Open the "Unique" folder (making the arrow point down.
  47.  
  48. Ñ Select the "Unique" folder, this will add files to it.
  49.  
  50. Ñ Under the "Source" menu, select the "Add Files..." menu item.
  51.  
  52. Ñ Go up one level, from the "mm" folder into the "Source" folder.
  53.  
  54. Ñ Open the "resources" folder, from the Add dialog.
  55.  
  56. Ñ Select the file starting with "Rez_" and ending in ".r". This is the Rez file.
  57.  
  58. Ñ Press the "Add" button.
  59.  
  60. Ñ Go up one level, from the "resources" folder into the "Source" folder.
  61.  
  62. Ñ Open the "u" folder, from the Add dialog.
  63.  
  64. Ñ Press the "Add All" button, this will select every file in this "u" dialog.
  65.  
  66. Ñ Press the "Done" button, this will now add them all to your project.
  67.  
  68.  
  69.  
  70. SETTING UP THE PROJECT...
  71.  
  72. Ñ Under the "Project" menu, select the "Options..." menu item.
  73.  
  74. Ñ Set all your THINK C++ preferences.
  75.  
  76. Ñ Change the prefix file used to be 
  77. #include "mmHeadersPPC".
  78.  
  79.  
  80.  
  81.  
  82. PRECOMPILED HEADERS...
  83.  
  84. Ñ Open the "mmHeaders.cp" file. Click on this file to select it.
  85.  
  86. Ñ Under the "Source" menu select the "Precompile╔" menu item.
  87.  
  88. Ñ Save the precompiled headers under the "mmHeadersPPC" name.
  89.  
  90. Ñ Close the "mmHeaders.cp"file.
  91.  
  92. Ñ Set your THINK C++  prefix preferences to say:
  93. #include "mmHeadersPPC"
  94.  
  95.  
  96.  
  97. CODING...
  98.  
  99. Ñ Make your changes to any file that does not start with "mm".  All the other files hook into 
  100. the "mm" files to provide you with access.
  101.  
  102.  
  103.  
  104.  
  105. RE-GENERATION.  After making changes or additions to your prototype.
  106.  
  107. Ñ Generate all sources again.  This will make a new folder named "Sources" or  "Sources" with 
  108. a number after it if that folder alreay exists.
  109.  
  110. Ñ Drag the "mm" folder from the newly generated folder into your working folder.
  111. NOTE: This replaces your older "mm" folder.  If you have made changes to any "mm" files, you 
  112. should never need to, then drag them into another folder first.
  113.  
  114. Ñ Drag the "mmXXX.rsrc" file from the new "resources" folder into your working "resources" folder.
  115.  
  116. Ñ Drag the "XXXX.╣.rsrc" file from your "Sources" folder into the trash can, you want THINK C to 
  117. make a new one using the new resource file.
  118.  
  119. Ñ Empty the trash.
  120.  
  121.  
  122. If you added a new Window, Dialog, or Alert then drag that corresponding file from the new "u" 
  123. folder into your working "u" folder.  If you are asked about replacing a file then say "No", you 
  124. got the wrong file.
  125.  
  126.  
  127. If you added a menu then open your "menuXXX.h" file and the new "menuXXX.h". Copy over the prototype 
  128. for the new menu.  Open your "menuXXX.c" file and the new "menuXXX.c".  Copy over the routine for the new menu.
  129.  
  130. If you added a button or other control then let THINK find any additional routines for you, in error messages.
  131.  
  132.  
  133.  
  134. Ñ Under the "Project" menu, select the "Remove Objects" menu item. This will make sure that all files 
  135. will be recompiled. 
  136.  
  137. Ñ Under the "Project" menu, select the "Bring Up To Date" menu item. This will compile all the files.
  138.  
  139. If there are errors involving new routines, like a checkbox handler routine where there were no check
  140.  boxes before.  Open the old corresponding "xxx.h" file, from the "u" folder. Open the new "xxx.h" file, 
  141.  copy the new prototype over.  Open the "xxx.c" files and copy over the new routine.
  142.